//
//  LzyImageView.m
//  蓝牙
//
//  Created by lzy on 2018/4/18.
//  Copyright © 2018年 lzy. All rights reserved.
//

#import "LzyImageView.h"

@implementation LzyImageView
-(void)setCornerRadius:(CGFloat)cornerRadius{
    
    _cornerRadius = cornerRadius;//不要使用self.cornerRadius = cornerRadius;这样会死循环
    
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = cornerRadius;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
